<!DOCTYPE html>
<html>

<head>
    <title>我的奖品</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/myProfiles.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <script src="/js/checkLogin.js"></script>
    <script src="/js/common.js"></script>

    <script>
        $(function () {
            // 使用jrender 插件渲染数据 到页面
            $(".info").renderValues(user);
            //获取用户的关注数和粉丝数
            var funsNum;
            var focusNum;
            $.get(baseUrl+"/users/"+user.id+"/focusFuns",function(data){
                funsNum = data.funsNum;
                focusNum = data.focusNum;
                $("#funsNum span").html(funsNum);
                $("#focusNum span").html(focusNum);
            });
            //获取当前用户的积分并且回显
            $.get(baseUrl+"/users/"+user.id+"/core",function(data) {
                $("#cores").html(data)
            })
            //获取当前用户的奖品并且回显
            $.get(baseUrl+"/users/"+user.id+"/award",function(data) {
                var span ='';
                $.each(data,function (index,ele) {
                    span += '<span >'+(index+1)+':'+ele+'</span><br/>'
                });
                $(".award").html(span)
            })
        })
    </script>

</head>

<body style="background: url('/upload/2.bmp')">
<div class="nav-search">
    <a href="/mine/profiles.html">
        <span><i class="fa fa-angle-left fa-2x"></i></span>
    </a>
</div>
<hr/>
<div class="container">
    <div class="row info">
        <div class="col-2" style="margin-right: 25px;">
            <img class="rounded-circle" render-src="headImgUrl">
        </div>
        <div class="col-8">
            <h5 render-html="nickName">喵1喵</h5>
            <ul class="list-inline">
                <li class="list-inline-item">
                    <small>常住地</small>
                </li>
                <li class="list-inline-item">
                    <small render-html="place">广1州</small>
                </li>
                <li class="list-inline-item" id="focusNum">
                    <a href="/mine/myFocus.html">
                        <small>关注<span>0</span></small>
                    </a>
                </li>
                <li class="list-inline-item" id="funsNum">
                    <a href="/mine/myFuns.html">
                        <small>粉丝<span>0</span></small>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <hr/>
</div>

<div>
    <div class="col-8" style="margin-right: 25px;">
        <h5>我的奖品:</h5><br/>
    </div>

    <div class="col-12 award" style="margin-right: 25px;">
            <span >123</span><br/>
    </div>

</div>

</body>

</html>